<a href="#" data-dropdown="sched_dropdown" class="small button secondary">Grades</a>
<a href="#" data-dropdown="subj_attendance_dropdown" class="small button secondary">Attendance</a>

<ul id="sched_dropdown" class="f-dropdown small" data-dropdown-content>
	<?foreach($teachers_schedule AS $ts):?>
		<li><a href="<?=site_url(array('grades', 'subject_grades', $ts->subject_id));?>"><?=$ts->subj_code?> (<?=$ts->time_from?> - <?=$ts->time_to?>) </a></li>
	<?endforeach;?>
</ul>

<ul id="subj_attendance_dropdown" class="f-dropdown small" data-dropdown-content>
	<?foreach($teachers_schedule AS $ts):?>
		<li><a href="<?=site_url(array('teacher', 'subject_attendance', $ts->subject_id));?>"><?=$ts->subj_code?> (<?=$ts->time_from?> - <?=$ts->time_to?>) </a></li>
	<?endforeach;?>
	<hr />
	<li><a href="<?=site_url(array('teacher','new_subject_attendance',$ts->subject_id))?>" style="color:green;">New Attendance</a></li>
</ul>